package com.zh.device.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.zh.device.dao.BehaviorDao;
import com.zh.device.domain.BehaviorDO;
import com.zh.device.service.BehaviorService;



@Service
public class BehaviorServiceImpl implements BehaviorService {
	@Autowired
	private BehaviorDao behaviorDao;
	
	@Override
	public BehaviorDO get(Integer id){
		return behaviorDao.get(id);
	}
	
	@Override
	public List<BehaviorDO> list(Map<String, Object> map){
		return behaviorDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return behaviorDao.count(map);
	}
	
	@Override
	public int save(BehaviorDO behavior){
		return behaviorDao.save(behavior);
	}
	
	@Override
	public int update(BehaviorDO behavior){
		return behaviorDao.update(behavior);
	}
	
	@Override
	public int remove(Integer id){
		return behaviorDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return behaviorDao.batchRemove(ids);
	}
	
}
